package com.example.lotterysystem.service.dto;

import com.example.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;

/**
 * 功能描述:
 *
 * @author Lenovo
 * @date 2025/2/2
 */
@Data
public class ActivityDTO {
    private Long activityId;
    private String activityName;
    private String description;
    private ActivityStatusEnum status;

    /**
     * 判断活动是否有效
     * @return
     */
    public boolean isValid(){
        return status.equals(ActivityStatusEnum.RUNNING);
    }
}
